/*
 * BlockingElementsGetterVisitor.cpp
 *
 *  Created on: 10-01-2011
 *      Author: Piotr
 */

#include "world/visitors/BlockingElementsGetterVisitor.hpp"
using std::vector;

void BlockingElementsGetterVisitor::visit(Individual& individual)
{
	elements.push_back(&individual);
}

void BlockingElementsGetterVisitor::visit(Barrier& barrier)
{
	elements.push_back(&barrier);
}

void BlockingElementsGetterVisitor::visit(MeatSupply&)
{

}

void BlockingElementsGetterVisitor::visit(VegetableSupply&)
{

}

void BlockingElementsGetterVisitor::visit(WaterSupply&)
{
}

vector<Element*> BlockingElementsGetterVisitor::getVector()
{
	return elements;
}
